<template>
  <component :is="componentName" :id="rowId" @subPage="subPage"></component>
</template>
<script lang="ts" setup name="biddingHall">
import BiddingHall from './biddingHall.vue'
import NoticeDetail from '@/views/components/noticeDetail/index.vue'

let rowId = ''
const componentName: Record<string, any> = ref(BiddingHall)
const pageList = [BiddingHall, NoticeDetail]

const subPage = (index, id) => {
  componentName.value = pageList[index]
  if (index === 1) {
    rowId = id
  }
}
</script>
